//
//  ChinaCommentViewController.m
//  GoodBuy
//
//  Created by dlios on 15-5-16.
//  Copyright (c) 2015年 GoodBuy. All rights reserved.
//

#import "ChinaCommentViewController.h"
#import "CommentChinaTableViewCell.h"
@interface ChinaCommentViewController () <UITableViewDataSource, UITableViewDelegate>
@property (nonatomic, retain) UITableView *tv;
@end

@implementation ChinaCommentViewController
- (void)dealloc
{
    [_tv release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"ta 在说";
    [self createTableView];
}
- (void)createTableView
{
    self.tv = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
    _tv.delegate = self;
    _tv.dataSource = self;
    _tv.rowHeight = [UIScreen mainScreen].bounds.size.height / 4;
    [self.view addSubview:_tv];
    [_tv release];
    [_tv registerClass:[CommentChinaTableViewCell class] forCellReuseIdentifier:@"reuse"];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    CommentChinaTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuse"];
    return cell;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
